import request from '../../utils/request.js'

export function getRecommendVideo() {
    return request({
        url: '/aiChat/getAiPersonalityVideo',
        method: 'get'
    })
}

// 根据指定科目查询对应视频
export function getTargetSubjectVideoList(subject) {
    return request({
        url: '/video/getTargetSubjectVideoList?subject=' + subject,
        method: 'get'
    })
}

// 当点击视频时 更新视频 用户个性 历史记录表
export function updateVideoData(videoId) {
    return request({
        url: '/video/clickVideo?videoId=' + videoId,
        method: 'put'
    })
}

// 获取热门视频
export function getHotVideo() {
    return request({
        url: '/video/getHotVideoList',
        method: 'get'
    })
}

// 获取指定科目的ai推荐的视频
export function getAiRecommendTargetSubjectVideo(subject) {
    return request({
        url: '/aiChat/getAiRecommendTargetSubjectVideo?subject=' + subject,
        method: 'get',
    })
}